home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Moscow ML 1.31
/
source code
/
mosml
/
e_mac
/
e_getenv.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-09-11
|
294 b
|
21 lines
|
[
TEXT/CWIE
]
/* e_getenv.c */
/* 11Sep95 e */
#include <stdlib.h>
#include <Resources.h>
char *e_getenv(const char *name)
{
Handle h;
Str255 buf;
c_to_p( name, buf );
h = GetNamedResource( 'ENV ', buf );
if( h == NULL ) return NULL;
MoveHHi(h);
HLock(h);
return (char *)*h;
}
/* end */